{%include file="m.index.header.tpl.php"%}
<!--头部 end--> 
<!--主体部分-->
<form name="myform" action="" method="get">
<div class="container" style="margin-top:70px;"> 
  
  <!-- <div class="row" style="margin-right:10%;">
    <div  class="col-xs-sm  text-right" > <a class="btn btn-primary" href="superior_notice_add.html" style="width:30%">增加</a></div>
  </div>
   -->
  <div class="row" style="margin-top:10px;">
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <label for="" class="col-sm-2 control-label">姓名:</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" name="graduate_name" value="{%$graduate_name%}">
        </div>
      </div>
    </div>
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <label for="" class="col-sm-2 control-label">学籍号:</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" name="graduate_num" value="{%$graduate_num%}">
        </div>
      </div>
    </div>
    <div class="col-xs-12 distance hierarchy2">
      <div class="form-group  text-center" style="padding-top:0px;">
	    <input type="hidden" name="a" value="graduate.history">
        <button type="submit" class="btn btn-success absolutely ">搜索</button>
      </div>
    </div>
  </div>
  </form>
  <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;" >
  {%foreach from=$graduate_lists key=key item=value%}
    <table class="table table-striped table-bordered text-center"  id="middles" >
      <tr>
        <td>学号</td>
        <td>{%$value.graduate_no%}</td>
      </tr>
      <tr>
        <td>姓名</td>
        <td>{%$value.graduate_name%}</td>
      </tr>
      <tr>
        <td>学籍号</td>
        <td>{%$value.graduate_num%}</td>
      </tr>
      <tr>
        <td>毕业证书号</td>
        <td>{%$value.graduate_certificate%}</td>
      </tr>
      <tr>
        <td>毕业类型</td>
        <td>{%$value.graduate_type%}</td>
      </tr>
      <tr>
        <td>就读学校</td>
        <td>{%$value.graduate_school%}</td>
      </tr>
	  {%foreach from=$value.graduate_na key=ke item=va%}
      <tr>
		
			<td>{%$ke%}</td>
		
        
			<td>{%$va%}</td>
		
      </tr>
	  {%/foreach%}
      <tr>
        <td>总分</td>
        <td>{%$value.graduate_count%}</td>
      </tr>
      <tr>
        <td>毕业评语</td>
        <td>{%$value.graduate_content%}</td>
      </tr>
      <tr>
        <td>备注</td>
        <td>{%$value.graduate_remark%}</td>
      </tr>
    </table>
	{%/foreach%}
  </div>
</div>
<!--container  end--> 
<!--主体部分  end--> 
<!--底部-->
{%include file="m.index.footer.tpl.php"%} 
<script type="text/javascript">
        $(document).ready(function () {
            $("#grade_id").change(function () {		
                if ($(this).val() == "-1") {
					$("#industr").remove(); return; 
					}
                else {
			var timestamp = new Date().getTime();
			$.ajax({
			url:"index.php?a=student.gradelistjson",
			type:"get",
			data: "grade_id=" + $("#grade_id").find("option:selected").val() + "&timestamp=" + timestamp,
			dataType:"json",
			success:function(msg){
			   
                            //实例2个字符串变量来拼接下拉列表
                            var industr = "";
                            //使用jquery解析json中的数据
                            $.each(msg, function (n, value) {
                                industr += ("<option value=\"" + value.class_id + "\">" + value.class_name);
                                industr += ("</option>");
                            });

                            $("#class_id").html(industr);			   			   
			}
			});					

                }

            });

        });
</script>